lexer grammar RuleLexer;

@header {
package org.moflon.moca.rule.parser;
import org.moflon.moca.MocaUtil;
}

WHITESPACE: (' ' | '\t' | '\r' | '/*' .* '*/') { skip(); };
TO: '=>';
DONTCARE: '*';
THIS: '#';
SEPARATOR: '|';
NEWLINE: '\n';



EMPTY: '_';

RULE: 'rule';
BEFORE: 'before';
AFTER: 'after';
ROW: 'row';
DONTCARE_FIELD: 'dontcare_field';
THIS_FIELD: 'this_field';
MAIN: 'main';


EMPTY_FIELD: 'empty_field'; 